import {get, post, del, put} from "@/apis/http/request";
import {ExchangeBillType} from "@/apis/model/exchange/ExchangeBillTypeModel";

/**
* 得到列表
* @param params
*/
export const getExchangeBillTypeList = (params: any) => get("/exchangeBillType/list", params)

/**
* 得到分页列表
* @param params
*/
export const exchangeBillTypePage = (params: any) => post("/exchangeBillType/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteExchangeBillTypeById = (id: number) => del("/exchangeBillType/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertExchangeBillType = (param: ExchangeBillType) => post("/exchangeBillType", param)

/**
* 更新数据
* @param param
*/
export const updateExchangeBillType = (param: ExchangeBillType) => put("/exchangeBillType", param)